#include <stdio.h>
#include <stdlib.h>

int z[4];
/* Although this is a trivial case of scalar replacement, it is
 * instructive to study the unoptimized code.  Run "make trivial.llvm.bc",
 * disassemble the resulting file, and study it carefully to understand the
 * LLVM code that is generated.
 */
int
main(int argc, char** argv)
{
  int *a, *b, *c, *d;
  int i,j,k,l;
  z[0] = argc*1;

  i = z[0]+argc;

  z[1] = i;

  printf("z[1] = %d\n", z[1]);
  //a = *p + *q;
  //The final result
  //printf("*p = %d, *q = %d, z[0] = %d, z[1] = %d, z[2] = %d\n", *p, *q, z[0], z[1], z[2]);
  return 0;
}
